//
//  KDMBaseBoard.h
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/10/29.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol KDMBaseboardDelegate;
@class KDMBaseBoardModel;
@interface KDMBaseBoard : UIView
@property (nonatomic, weak) id<KDMBaseboardDelegate>delegate;
@property (nonatomic, strong) KDMBaseBoardModel *model;
@property (nonatomic, strong) NSDate * curDate;//当前日期
/**
 *  类型：是关键字0；网站1；微博4；作者2;APP 3;
 */
@property (nonatomic, assign) NSInteger mainPageType;
/**
 *  外面的类型选项
 */
@property (nonatomic, assign) NSInteger outSideKindType;
@property (nonatomic, assign) NSInteger showReginType;
/**
 *  网站所有子板块
 */
@property (nonatomic, strong) NSArray *webBlockList;


+ (instancetype)baseboard;
- (void)refreshTitle;

@end

@protocol KDMBaseboardDelegate <NSObject>

/**
 *  发送消息给主页，确定按钮被点击了
 */
- (void)baseBoard:(KDMBaseBoard *)baseBoard confirmBtnDidClickWithBaseBoardModel:(KDMBaseBoardModel *)model;
@optional
/**
 *  地区按钮被点击了
 */
- (void)areaBtnClickWithBaseBoard:(KDMBaseBoard *)baseBoard;
/**
 *  类型按钮被点击了
 *
 *  @param tag 被点击的按钮的tag
 */
- (void)kindTypeBtnClickWithBtnTag:(NSInteger )tag;

@end